FUNCTIONAL PEARLS Back to Basics: Deriving Representation Changers Functionally

نویسندگان

  • Graham Hutton
  • Erik Meijer
چکیده

A representation changer is a function that converts a concrete representation of an abstract value into a different concrete representation of that value. Many useful functions can be recognised as representation changers; examples include compilers, and arithmetic functions such as addition and multiplication. Functions that can be specified as the right inverse of other functions are special cases of representation changers. In recent years, a number of authors have used a relational calculus to derive representation changers from their specifications. In this paper we show that the generality of relations is not essential, and representation changers can be derived within the more basic setting of functional programming. We illustrate our point by deriving a carry-save adder and a base-converter, two functions which have previously been derived relationally.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Back to Basics: Deriving Representation Changers Functionally

A representation changer is a function that converts a concrete representation of an abstract value into a different concrete representation of that value. Many useful functions can be recognised as representation changers; examples include compilers, and arithmetic functions such as addition and multiplication. Functions that can be specified as the right inverse of other functions are special...

متن کامل

Special issue on functional pearls Editorial

You are holding a necklace in your hands, composed of no fewer than thirteen exquisite pearls. The pearls are from all over the world, selected for the finest quality, smoothness and lustre. For your viewing pleasure, the necklace emphasizes variety, stringing pearls of wildly different color, shape and size. Satisfaction is guaranteed. This special issue of the Journal of Functional Programmin...

متن کامل

Back to basics for Bayesian model building in genomic selection.

Numerous Bayesian methods of phenotype prediction and genomic breeding value estimation based on multilocus association models have been proposed. Computationally the methods have been based either on Markov chain Monte Carlo or on faster maximum a posteriori estimation. The demand for more accurate and more efficient estimation has led to the rapid emergence of workable methods, unfortunately ...

متن کامل

Buckling of Rectangular Functionally Graded Material Plates under Various Edge Conditions

In the present paper, the buckling problem of rectangular functionally graded (FG) plate with arbitrary edge supports is investigated. The present analysis is based on the classical plate theory (CPT) and large deformation is assumed for deriving stability equations. The plate is subjected to bi-axial compression loading. Mechanical properties of FG plate are assumed to vary continuously along ...

متن کامل

Buckling Analysis of Functionally Graded Shallow Spherical Shells Under External Hydrostatic Pressure

The aim of this paper is to determine the critical buckling load for simply supported thin shallow spherical shells made of functionally graded material (FGM) subjected to uniform external pressure. A metal-ceramic functionally graded (FG) shell with a power law distribution for volume fraction is considered, where its properties vary gradually through the shell thickness direction from pure me...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993